package com.pingpang.websocketchat;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class ChatInit implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        System.out.println("The netty start to initialize ...");
        new WebsocketChatServer(8089).run();
    }
}

